package com.ruoyi.framework.web.domain.server;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 管理对象 sys_store
 *
 * @author ruoyi
 * @date 2024-06-12
 */
public class SysStoreFrameword extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商家主键ID */
    private Long id;

    /** 商家名称 */
    @Excel(name = "商家名称")
    private String name;

    /** 所属代理商id */
    @Excel(name = "所属代理商id")
    private Long agentId;

    /** 所属代理商名称 */
    @Excel(name = "所属代理商名称")
    private String agentName;

    /** 联系人名称 */
    @Excel(name = "联系人名称")
    private String userName;

    /** 联系人邮箱 */
    @Excel(name = "联系人邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 所在城市 */
    @Excel(name = "所在城市")
    private String city;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 标识 */
    @Excel(name = "标识")
    private String mark;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 0线下 1 短信/邮件授权 */
    @Excel(name = "0线下 1 短信/邮件授权")
    private Long authMethod;

    /** 认证权限 0允许  1不允许 */
    @Excel(name = "认证权限 0允许  1不允许")
    private Long authStatus;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 套餐id */
//    @Excel(name = "套餐id")
//    private Long packageId;
    private Long[] packageIds;

    /** 操作人id */
    private Long userId;

    /** 部门id */
    private Long deptId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAgentId(Long agentId)
    {
        this.agentId = agentId;
    }

    public Long getAgentId()
    {
        return agentId;
    }
    public void setAgentName(String agentName)
    {
        this.agentName = agentName;
    }

    public String getAgentName()
    {
        return agentName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setMark(String mark)
    {
        this.mark = mark;
    }

    public String getMark()
    {
        return mark;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setAuthMethod(Long authMethod)
    {
        this.authMethod = authMethod;
    }

    public Long getAuthMethod()
    {
        return authMethod;
    }
    public void setAuthStatus(Long authStatus)
    {
        this.authStatus = authStatus;
    }

    public Long getAuthStatus()
    {
        return authStatus;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public Long[] getPackageIds() {
        return packageIds;
    }

    public void setPackageIds(Long[] packageIds) {
        this.packageIds = packageIds;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("agentId", getAgentId())
            .append("agentName", getAgentName())
            .append("userName", getUserName())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("city", getCity())
            .append("address", getAddress())
            .append("balance", getBalance())
            .append("mark", getMark())
            .append("password", getPassword())
            .append("authMethod", getAuthMethod())
            .append("authStatus", getAuthStatus())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .toString();
    }
}
